PRM Fincon interview question

Java