Gate Questions On Algorithms