public class SumTheDigits {

	// * Add your static method here

	// But don't change anything below this point.
	public static void main( String[] args ) {
		test(6,  sumDigits(123));
		test(22, sumDigits(45454));
		test(9,  sumDigits(111111111));
		test(0,  sumDigits(0));
	}

	public static void test( int a, int b ) {
		if ( a == b )
			System.out.println("PASS - " + a + " == " + b);
		else
			System.out.println("FAIL! got " + b + " but expected " + a);
	}
}

