solve problem 3 in five languages