HackerRank
HackerRank copied to clipboard
Update Electronic Shop/Solution.java
if max has reached the maximum possible value that is max == s, then there is no need to continue the loop