Majority Element Interviewbit Solution