for the test case A : [ 8 ] B : [ 7, 8 ] C : [ 6 ] The answer should be 1 but the solution given outputs 2.

its correct a=8 b=7/8 anything u want c=6 min=2

No, the soution would be 2 not 1 as min(a,b,c) in the given test case always be 6.