Solution to 1 (int)