Added solution for problem 'long'