title: Construction of a string
body: <p>You are given three positive integers n, a and b. You have to construct a string s of length n consisting of lowercase Latin letters such that each substring of length a has exactly b distinct letters. </p>
  
  <p>Please provide hints on how to solve. Please dont solve the question. Should I use arrays?</p>