American Express interview question

Dp, Graph, Bitwise Operations