Print a pattern where each row i prints i*i.: Medium Programming Problem