IBM Interview Question

They asked about some algorithms, it was simple like heap and linked list