Few more r/dailyProgrammer problems

Exclusively in c++