Boom Financial interview question

Nothing unexpected just know your java