260

This can be done using both stack or queue.