Prudential Interview Question

still in progress i haven't finished yet so far