Write a function solution that given two integers a and b