solved problem 5

yeah i used brute force so what