Add template cpp file
Add solution to N mod M challange