Use case missed by provided fastest solution


The fastest solution provided for this problem misses a simple test case for initial array A = [0, 6]. Since array can contain non-negative numbers, so it is a valid input.
Expected output is 60
However, the solution returns 6 and 0 is discarded due to this condition,
if(“0”.equals(s) && strBuf.length() != 0) {