Bruno Mars earned his first solo No. 1 hit 15 years ago with “Just the Way You Are,” launching a career of nonstop chart success and Grammy-winning hits.