added solutions for n_queens, anagrams and max subarray