Pergunta de entrevista da empresa Workday

In the 2 technical interviews over 2 hours (1 hour each) I was asked: -what is a semaphore, and inheritance in javascript -how to find the index of 2 numbers that sum to a certain number in an ordered array -how to find cycles in a graph -figure out if two strings are anagrams of each other -compare linked list, arrays, vectors, binary trees in space and time complexity and discuss how they're stored differently in memory and the pros/cons of that