Sankey Solutions interview question

to complete the technical interview