Added current code for Beautiful Arrays problem (this code is apparently
too slow).