added test when array is [] and solution == 1