Pergunta de entrevista da empresa Principal Financial Group

A real time scenario was given and then asked how to solve using Programming Paradigm.