Pergunta de entrevista da empresa bp

Database related and SQL related problems. Knapsack problem and Binary Search problem.