I am writing a program that creates string of length n with x distinct values however it\'s required that the string created should have lowest ascii sum , my code creates n len