Pergunta de entrevista da empresa Connected

Given a List, Array, and String, return an array filled with any elements that are common among the three. Answer on the whiteboard and was then asked about the solutions time complexity and asked to optimise further.