KPIT Technologies interview question

Flip flops, logic gates, sorting algorithms