Prudential Interview Question

describe your methodology for the techncial question