Solution for diffrent coding problems