Money change problem

Sometimes you take int and sometimes int* before lower_ bound function .