added solution for GooseTattarrattatDiv2 for srm 589