Solution for Test Cases