even easy took me a day, did not read the problem carefully