Added a WHILE solution and a FOR solution