N26 interview question

hackkrank spring boot problem