This question is asked on 21st April 2021!
Previously asked TCS DCA coding questions with solutions
Given a string str which consists of only 3 letters representing the color,(H) Hue, (S) Saturation, (L) Lightness, called HSL colors. The task is to count the occurrence of ordered triplet “H, S, L” in a given string and give this count as the output.
Please checkout the video for solution!