Rently interview question

Application based program