I recently came across this unexpected output for Java code. Please let me know your opinion about what is wrong with it.
public static int calculateTotalPrice(in