My Solution works fine but it is not meeting the last condition. Any idea, why?