KPIT Technologies interview question

Different Gates with truth table.