Solve SRM 155, Div 2, Problem Quipu