Solved problem 100 and 77