Arduino sketch from truth table

I do have a choice, my language of choice is C but we use arduino uno for this project. And I know that arduino understands C.