"""
Given a string and a pattern state whether it follows the pattern.
 For eg: s = “redblueredgreen” matches pattern “abac”
  but not “aaab” as ‘red’ means ‘a’, ‘blue’ means ‘b’ and ‘green’ means ‘c’ here.
String s only contains words “red”, “green” & “blue” and pattern can have any character.
Ref: http://www.geeksforgeeks.org/amazon-interview-experience-set-276-on-campus-sde-i/
"""
