2line easy first try


#1
int x=A%B;
return (x+C-1)%B;

#2

1line
return (A+C-1)%B;


#3

@piushcs , @sanjay-kumar_699 please try A=5 , B=5 , C=1 and match with expected output these solutions are wrong , IB has missed this test case.


#4

for 8 5 3 it is wrong, check the case when this return statement is negative or zero(add B);