Infosys interview question

Write C++ programs for finding the largest number via bubble sort algorith.