Single line Java Solution


#1
public class Solution{
    public int solve(int A, int B, int C){
        return (((A+C-1)%B) == 0) ? B : ((A+C-1)%B);
    }
}