Pergunta de entrevista da empresa Unthinkable

Check if two strings are anagram and was asked to optimise it to linear time complexity Without using in built Map.