KVP Business Solutions interview question

question like printing diamond shape pattern using Java or c