FHLBank Topeka interview question

write code/algorithm for a given problem